package com.guofen.dao;

import com.guofen.pojo.KitchenwasteHatching;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface KitchenwasteHatchingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(KitchenwasteHatching record);

    int insertSelective(KitchenwasteHatching record);

    KitchenwasteHatching selectByPrimaryKey(Integer id);
    KitchenwasteHatching getlast();

    int updateByPrimaryKeySelective(KitchenwasteHatching record);

    int updateByPrimaryKey(KitchenwasteHatching record);

    List<KitchenwasteHatching> selectAll();

    List<KitchenwasteHatching> selectByDate(@Param("startDate") String startDate,
                                       @Param("endDate") String endDate);
}